home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
IDLIncludes
/
Quickdraw.idl
< prev
next >
Wrap
Text File
|
1996-05-01
|
11KB
|
317 lines
/*
File: Quickdraw.idl
Contains: Quickdraw Graphics Interfaces.
Version: Technology: System 7.5
Release: Universal Interfaces 3.0d3 on Copland DR1
Copyright: © 1984-1996 by Apple Computer, Inc. All rights reserved.
Bugs?: If you find a problem with this file, send the file and version
information (from above) and the problem description to:
Internet: apple.bugs@applelink.apple.com
AppleLink: APPLE.BUGS
*/
#ifndef __QUICKDRAW_IDL__
#define __QUICKDRAW_IDL__
#include <somobj.idl>
#include <somcls.idl>
#ifndef __TYPES_IDL__
#include <Types.idl>
#endif
#ifndef __MIXEDMODE_IDL__
#include <MixedMode.idl>
#endif
#ifndef __QUICKDRAWTEXT_IDL__
#include <QuickdrawText.idl>
#endif
#ifdef __SOMIDL__
typedef SOMLargeStruct RGBColor; /* Derived from a struct of 6 bytes in size */
typedef OpaquePtr RGBColorPtr; /* Substituted OpaquePtr for ``RGBColor*'' */
typedef OpaquePtr RGBColorHdl; /* Substituted OpaquePtr for ``RGBColorPtr*'' */
typedef SOMLargeStruct ColorSpec; /* Derived from a struct of 8 bytes in size */
typedef OpaquePtr ColorSpecPtr; /* Substituted OpaquePtr for ``ColorSpec*'' */
typedef OpaquePtr CSpecArray; /* Substituted OpaquePtr for array of ColorSpec of size 1 */
typedef SOMLargeStruct ColorTable; /* Derived from a struct of 16 bytes in size */
typedef OpaquePtr CTabPtr; /* Substituted OpaquePtr for ``ColorTable*'' */
typedef OpaquePtr CTabHandle; /* Substituted OpaquePtr for ``CTabPtr*'' */
typedef SOMLargeStruct xColorSpec; /* Derived from a struct of 10 bytes in size */
typedef OpaquePtr xColorSpecPtr; /* Substituted OpaquePtr for ``xColorSpec*'' */
typedef OpaquePtr xCSpecArray; /* Substituted OpaquePtr for array of xColorSpec of size 1 */
typedef SOMLargeStruct GammaTbl; /* Derived from a struct of 14 bytes in size */
typedef OpaquePtr GammaTblPtr; /* Substituted OpaquePtr for ``GammaTbl*'' */
typedef OpaquePtr GammaTblHandle; /* Substituted OpaquePtr for ``GammaTblPtr*'' */
typedef OpaquePtr Bits16; /* Substituted OpaquePtr for array of short of size 16 */
typedef SOMLargeStruct Cursor; /* Derived from a struct of 68 bytes in size */
typedef OpaquePtr CursPtr; /* Substituted OpaquePtr for ``Cursor*'' */
typedef OpaquePtr CursHandle; /* Substituted OpaquePtr for ``CursPtr*'' */
#if FOR_SYSTEM7_AND_SYSTEM8_COOPERATIVE
#if OLDROUTINENAMES
#endif
typedef SInt8 GrafVerb;
typedef SInt8 PixelType;
/*
************** IMPORTANT NOTE REGARDING Pattern **************************************
Patterns were originally defined as:
C: typedef unsigned char Pattern[8];
Pascal: Pattern = PACKED ARRAY [0..7] OF 0..255;
The old array defintion of Pattern would cause 68000 based CPU's to crash in certain circum-
stances. The new struct definition is safe, but may require source code changes to compile.
Read the details in TechNote "Platforms & Tools" #PT 38.
********************************************************************************************
*/
typedef SOMLargeStruct Pattern; /* Derived from a struct of 8 bytes in size */
/*
ConstPatternParam is now longer needed. It was first created when Pattern was an array.
Now that Pattern is a struct, it is more straight forward just add the "const" qualifier
on the parameter type (e.g. "const Pattern * pat" instead of "ConstPatternParam pat").
*/
typedef OpaquePtr ConstPatternParam; /* Substituted OpaquePtr for ``Pattern*'' */
typedef OpaquePtr PatPtr; /* Substituted OpaquePtr for ``Pattern*'' */
typedef OpaquePtr PatHandle; /* Substituted OpaquePtr for ``PatPtr*'' */
typedef SignedByte QDByte;
typedef OpaquePtr QDPtr; /* Substituted OpaquePtr for ``QDByte*'' */
typedef OpaquePtr QDHandle; /* Substituted OpaquePtr for ``QDPtr*'' */
typedef short QDErr;
typedef unsigned long DeviceLoopFlags;
typedef SOMLargeStruct BitMap; /* Derived from a struct of 14 bytes in size */
typedef OpaquePtr BitMapPtr; /* Substituted OpaquePtr for ``BitMap*'' */
typedef OpaquePtr BitMapHandle; /* Substituted OpaquePtr for ``BitMapPtr*'' */
typedef SOMLargeStruct PenState; /* Derived from a struct of 18 bytes in size */
typedef SOMLargeStruct Region; /* Derived from a struct of 10 bytes in size */
typedef OpaquePtr RgnPtr; /* Substituted OpaquePtr for ``Region*'' */
typedef OpaquePtr RgnHandle; /* Substituted OpaquePtr for ``RgnPtr*'' */
typedef SOMLargeStruct Picture; /* Derived from a struct of 10 bytes in size */
typedef OpaquePtr PicPtr; /* Substituted OpaquePtr for ``Picture*'' */
typedef OpaquePtr PicHandle; /* Substituted OpaquePtr for ``PicPtr*'' */
typedef SOMLargeStruct Polygon; /* Derived from a struct of 14 bytes in size */
typedef OpaquePtr PolyPtr; /* Substituted OpaquePtr for ``Polygon*'' */
typedef OpaquePtr PolyHandle; /* Substituted OpaquePtr for ``PolyPtr*'' */
typedef OpaquePtr QDTextProcPtr;
typedef OpaquePtr QDTextUPP;
typedef OpaquePtr QDLineProcPtr;
typedef OpaquePtr QDLineUPP;
typedef OpaquePtr QDRectProcPtr;
typedef OpaquePtr QDRectUPP;
typedef OpaquePtr QDRRectProcPtr;
typedef OpaquePtr QDRRectUPP;
typedef OpaquePtr QDOvalProcPtr;
typedef OpaquePtr QDOvalUPP;
typedef OpaquePtr QDArcProcPtr;
typedef OpaquePtr QDArcUPP;
typedef OpaquePtr QDPolyProcPtr;
typedef OpaquePtr QDPolyUPP;
typedef OpaquePtr QDRgnProcPtr;
typedef OpaquePtr QDRgnUPP;
typedef OpaquePtr QDBitsProcPtr;
typedef OpaquePtr QDBitsUPP;
typedef OpaquePtr QDCommentProcPtr;
typedef OpaquePtr QDCommentUPP;
typedef OpaquePtr QDTxMeasProcPtr;
typedef OpaquePtr QDTxMeasUPP;
typedef OpaquePtr QDGetPicProcPtr;
typedef OpaquePtr QDGetPicUPP;
typedef OpaquePtr QDPutPicProcPtr;
typedef OpaquePtr QDPutPicUPP;
typedef OpaquePtr QDOpcodeProcPtr;
typedef OpaquePtr QDOpcodeUPP;
typedef OpaquePtr QDJShieldCursorProcPtr;
typedef OpaquePtr QDJShieldCursorUPP;
typedef SOMLargeStruct QDProcs; /* Derived from a struct of 52 bytes in size */
typedef OpaquePtr QDProcsPtr; /* Substituted OpaquePtr for ``QDProcs*'' */
typedef SOMLargeStruct GrafPort; /* Derived from a struct of 108 bytes in size */
typedef OpaquePtr GrafPtr; /* Substituted OpaquePtr for ``GrafPort*'' */
/*
* This set of definitions "belongs" in Windows.
* But, there is a circularity in the headers where Windows includes Controls and
* Controls includes Windows. To break the circle, the information
* needed by Controls is moved from Windows to Quickdraw.
*/
typedef GrafPtr WindowPtr;
typedef WindowPtr WindowRef;
typedef WindowPtr DialogPtr;
/* DragConstraint constants to pass to DragGray,DragTheRgn, or ConstrainedDragRgn*/
typedef UInt16 DragConstraint;
typedef OpaquePtr DragGrayRgnProcPtr;
typedef OpaquePtr DragGrayRgnUPP;
/*
* Here ends the list of things that "belong" in Windows.
*/
typedef OpaquePtr ColorSearchProcPtr;
typedef OpaquePtr ColorSearchUPP;
typedef OpaquePtr ColorComplementProcPtr;
typedef OpaquePtr ColorComplementUPP;
typedef SOMLargeStruct MatchRec; /* Derived from a struct of 10 bytes in size */
typedef SOMLargeStruct PixMap; /* Derived from a struct of 50 bytes in size */
typedef OpaquePtr PixMapPtr; /* Substituted OpaquePtr for ``PixMap*'' */
typedef OpaquePtr PixMapHandle; /* Substituted OpaquePtr for ``PixMapPtr*'' */
typedef SOMLargeStruct PixPat; /* Derived from a struct of 28 bytes in size */
typedef OpaquePtr PixPatPtr; /* Substituted OpaquePtr for ``PixPat*'' */
typedef OpaquePtr PixPatHandle; /* Substituted OpaquePtr for ``PixPatPtr*'' */
typedef SOMLargeStruct CCrsr; /* Derived from a struct of 96 bytes in size */
typedef OpaquePtr CCrsrPtr; /* Substituted OpaquePtr for ``CCrsr*'' */
typedef OpaquePtr CCrsrHandle; /* Substituted OpaquePtr for ``CCrsrPtr*'' */
#if OLDROUTINELOCATIONS
typedef SOMLargeStruct CIcon; /* Derived from a struct of 84 bytes in size */
typedef OpaquePtr CIconPtr; /* Substituted OpaquePtr for ``CIcon*'' */
typedef OpaquePtr CIconHandle; /* Substituted OpaquePtr for ``CIconPtr*'' */
#endif
typedef SOMLargeStruct ITab; /* Derived from a struct of 7 bytes in size */
typedef OpaquePtr ITabPtr; /* Substituted OpaquePtr for ``ITab*'' */
typedef OpaquePtr ITabHandle; /* Substituted OpaquePtr for ``ITabPtr*'' */
typedef SOMLargeStruct SProcRec; /* Derived from a struct of 8 bytes in size */
typedef OpaquePtr SProcPtr; /* Substituted OpaquePtr for ``SProcRec*'' */
typedef OpaquePtr SProcHndl; /* Substituted OpaquePtr for ``SProcPtr*'' */
typedef SOMLargeStruct CProcRec; /* Derived from a struct of 8 bytes in size */
typedef OpaquePtr CProcPtr; /* Substituted OpaquePtr for ``CProcRec*'' */
typedef OpaquePtr CProcHndl; /* Substituted OpaquePtr for ``CProcPtr*'' */
typedef SOMLargeStruct GDevice; /* Derived from a struct of 62 bytes in size */
typedef OpaquePtr GDPtr; /* Substituted OpaquePtr for ``GDevice*'' */
typedef OpaquePtr GDHandle; /* Substituted OpaquePtr for ``GDPtr*'' */
typedef SOMLargeStruct GrafVars; /* Derived from a struct of 26 bytes in size */
typedef OpaquePtr GVarPtr; /* Substituted OpaquePtr for ``GrafVars*'' */
typedef OpaquePtr GVarHandle; /* Substituted OpaquePtr for ``GVarPtr*'' */
typedef SOMLargeStruct CQDProcs; /* Derived from a struct of 80 bytes in size */
typedef OpaquePtr CQDProcsPtr; /* Substituted OpaquePtr for ``CQDProcs*'' */
typedef SOMLargeStruct CGrafPort; /* Derived from a struct of 108 bytes in size */
typedef OpaquePtr CGrafPtr; /* Substituted OpaquePtr for ``CGrafPort*'' */
typedef CGrafPtr CWindowPtr;
typedef SOMFourByteStruct ReqListRec; /* Derived from a struct of 4 bytes in size */
typedef SOMLargeStruct OpenCPicParams; /* Derived from a struct of 24 bytes in size */
typedef SOMLargeStruct CursorImageRec; /* Derived from a struct of 12 bytes in size */
typedef OpaquePtr CursorImagePtr; /* Substituted OpaquePtr for ``CursorImageRec*'' */
typedef OpaquePtr DeviceLoopDrawingProcPtr;
typedef OpaquePtr DeviceLoopDrawingUPP;
#if FOR_SYSTEM8_COOPERATIVE
typedef DeviceLoopDrawingProcPtr NativeDeviceLoopDrawingProcPtr;
#endif
typedef SOMLargeStruct QDGlobals; /* Derived from a struct of 206 bytes in size */
typedef OpaquePtr QDGlobalsPtr; /* Substituted OpaquePtr for ``QDGlobals*'' */
typedef OpaquePtr QDGlobalsHdl; /* Substituted OpaquePtr for ``QDGlobalsPtr*'' */
#if OLDROUTINELOCATIONS
#endif
#if FOR_SYSTEM8_COOPERATIVE
#endif
#if CGLUESUPPORTED
#endif
#if OLDROUTINENAMES
#if OLDROUTINELOCATIONS
#endif
#endif
/*
From ToolUtils.i
*/
#endif
#if FOR_SYSTEM7_AND_SYSTEM8_PREEMPTIVE
/*
Also from ToolUtils.i
*/
#endif
#endif /* __SOMIDL__ */
#endif /* __QUICKDRAW_IDL__ */